<template>
    <div class="con">
        <div class="header">
          <van-nav-bar title="东方购物" left-text="返回"  right-text="分享" left-arrow class="spec" @click-right='share()' @click-left='tab1()'>
           <van-icon name="cluster-o" slot="right"  />
           
            </van-nav-bar>
            <van-action-sheet v-model="show" title="分享到" height:30>
                <div class="share">
                    <share :config='config'></share>
                </div>
            </van-action-sheet>
      </div>
      <div class="main">
          <div class="banner">
              <img src="../assets/a10.gif" alt="">
          </div>
          <div class="cutgoods">
              <div class="cutgoods-con">
                  <figure>
                      <img src="../assets/a11.gif" alt="">
                      <figcaption>
                          <h2>利茸 加长防烫手筷子</h2>
                          <span>原价39元</span>
                          <em>可砍至:</em>
                          <b>9元</b>
                      </figcaption>  
                  </figure>
                   <div class="progress">
                    <div class="progress-con">
                        <span></span>
                    </div>
                    <p><span>39</span><span>32</span><span>24</span><span>17</span><span>9</span></p>
                   </div>
                   <div class="content">
                      <p><span>靳**</span> 帮砍了一刀</p>
                      <div class="cut">帮砍一刀</div> 
                      <p>已有<span>1941</span>人参与评价</p>
                   </div>
              </div>
              <div class="cutgoods-con">
                  <figure>
                      <img src="../assets/a11.gif" alt="">
                      <figcaption>
                          <h2>利茸 加长防烫手筷子</h2>
                          <span>原价39元</span>
                          <em>可砍至:</em>
                          <b>9元</b>
                      </figcaption>  
                  </figure>
                   <div class="progress">
                    <div class="progress-con">
                        <span></span>
                    </div>
                    <p><span>39</span><span>32</span><span>24</span><span>17</span><span>9</span></p>
                   </div>
                   <div class="content">
                      <p><span>靳**</span> 帮砍了一刀</p>
                      <div class="cut">帮砍一刀</div> 
                      <p>已有<span>1941</span>人参与评价</p>
                   </div>
              </div>

              <div class="cutgoods-con">
                  <figure>
                      <img src="../assets/a11.gif" alt="">
                      <figcaption>
                          <h2>利茸 加长防烫手筷子</h2>
                          <span>原价39元</span>
                          <em>可砍至:</em>
                          <b>9元</b>
                      </figcaption>  
                  </figure>
                   <div class="progress">
                    <div class="progress-con">
                        <van-progress
                            pivot-text=""
                            color="#f2826a"
                            :percentage="percent"
                            />
                    </div>
                    <p><span>39</span><span>32</span><span>24</span><span>17</span><span>9</span></p>
                   </div>
                   <div class="content">
                      <p><span>靳**</span> 帮砍了一刀</p>
                      <div class="cut" @click="cutprice()">帮砍一刀</div> 
                      <p>已有<span>1941</span>人参与评价</p>
                   </div>
              </div>
          </div>
      </div>
    </div>
</template>

<script>
export default {
    name:'Cutprice',
      methods:{
        share(){
            this.show=true
        },
        tab1(){
            this.$router.go(-1)
        },
        cutprice(){
            this.percent++
        }
    },
     data(){
        return{
            show:false,
            percent:30,
            config:{
                url: 'http://www.baidu.com', // 网址，默认使用 window.location.href
		source:'', // 来源（QQ空间会用到）, 默认读取head标签：<meta name="site" content="http://overtrue" />
		title: 'hello', // 标题，默认读取 document.title 或者 <meta name="title" content="share.js" />
		description: 'hi', // 描述, 默认读取head标签<meta name="description" content="PHP弱类型的实现原理分析" />
		image : '', // 图片, 默认取网页中第一个img标签
		sites: ['qq', 'weibo','qzone' ,], // 启用的站点
		wechatQrcodeTitle: '微信扫一扫：分享', // 微信二维码提示文字
		wechatQrcodeHelper  : '<p>微信里点“发现”，扫一下</p><p>二维码便可将本文分享至朋友圈。</p>'

            }
        }
    },
}
</script>

<style scoped>
.content{
    display: flex;
    flex-direction: column;
    align-items: center;
 

}
.content>p:first-child{
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #000
}
.content>p:last-child{
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid #d8d8d8;
    width: 100%;
    text-align: center;
    padding-bottom: 5px

}
.content>p:last-child span{
    color: red;
    font-weight: 600;
}
.content div{
       width: 170px;
    height: 40px;
    border-radius: 5px;
    background:#eb2e31 ;
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    margin: 5px 0
}
.content>p:first-child span{
    color: red
}
.progress p{
    margin-top: 8px;
    color: red;
    display: flex;
    justify-content: space-between;
    padding: 0 3px;
    font-size: 14px
}
.progress p span:first-child{
    font-weight: 600;
}
.progress p span:last-child{
    font-weight: 600;
}
.progress p span{
    display: block;
    position: relative;
    width: 10px;
    text-align: center
}
.progress p span:after{
    content: '';
    display: block;
    width: 2px;
    height: 8px;
    background: red;
    position: absolute;
    left: 7px;
    top: -6px;
}
.cutgoods{
    min-height: 600px;
    background:#f3b728;
    margin-top: -3px;
    padding: 0 12px;
    overflow: hidden;
}

.cutgoods-con{
    width: 100%;
    background: #fff9eb;
    margin-top: 3px;
    border-radius: 7px;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    padding-bottom: 10px;
    margin-bottom: 40px
}
.cutgoods-con figure{
    background: #f3eee1;
    margin-top:10px;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
    padding-bottom: 15px
}
.cutgoods-con figure img{
    width: 160px;
    margin-top: 15px;
    margin-right: 15px
}
.cutgoods-con figure h2{
    font-size: 18px;
    width:100px;
    margin-top: 30px;
    margin-bottom: 10px
}
.cutgoods-con figure figcaption{
    display: flex;
    flex-direction: column;
}
.cutgoods-con figure figcaption span{
    margin-bottom: 2px;
    font-size: 14px;
}
.cutgoods-con figure figcaption em{
    font-style: normal;
    font-size: 14px;
}
.cutgoods-con figure figcaption b{
    font-size: 26px;
    color: red;
    font-weight: normal;
    margin-top: 10px
}
.banner img{
    width: 100%;
   
}
.progress{
    margin-top: 10px
}
.progress-con{
    width: 100%;
     background: #f3eee1;
    height: 10px;
    border-radius:5px;
    position: relative;
}
.progress-con span{
    position: absolute;
    display: block;
    width: 40%;
    height: 10px;
    background: red;
    border-radius:5px;
}
.con{
    height: 100%
}
h2,p,h1,h3,figure,ul,dl{
    margin: 0
}
.social-share{
    display: flex;
    justify-content: space-between;
    padding: 0 38px
}
.share{
    height: 100px;
}.van-nav-bar__text{
    color: #000
}
.van-nav-bar .van-icon{
    color: #333;
    margin-top: 3px
}
.van-nav-bar__title{
    font-size: 15px
}
.con{
    display: flex;
    flex-direction: column;
    background:#f3f3f3;
    height: 100vh;
}
.main{
    flex: 1;
    overflow: auto
}
</style>